﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using System.ComponentModel.DataAnnotations;

namespace Bridge.System.Domain
{
    [Comment("系统参数设置")]
    [Table("t_sys_config")]
    public class SysConfig : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public SysConfig() { }

        public SysConfig(Guid Id)
        {
            this.Id = Id;
        }
        /// <summary>
        /// 参数名称
        /// </summary>
        [MaxLength(500)]
        [Comment("参数名称")]
        public string ConfigName { get; set; }
        /// <summary>
        /// 参数键名
        /// </summary>
        [MaxLength(200)]
        [Comment("参数名称")]
        public string ConfigKey { get; set; }
        /// <summary>
        /// 参数值
        /// </summary>
        [MaxLength(200)]
        [Comment("字典值")]
        public string ConfigValue { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        [Comment("备注")]
        public string Remark { get; set; }
        [Comment("是否删除")]
        public bool IsDeleted { get; set; } = false;
        [Comment("租户Id")]
        public Guid? TenantId { get; set; }
    }
}
